package com.tm.media.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.tm.media.model.util.PageUtil;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.time.LocalDateTime;

/**
 * @Author Ly
 * @Data 2023/3/3 9:41
 * @ClassName ApUserFanEntity
 */
@TableName("ap_user_fan")
@Data
public class ApUserFanEntity  extends PageUtil {
    @TableId(type = IdType.AUTO)
    private   Integer	id;
    private   Integer	userId;
    private   Integer	fansId;
    private   String	fansName;
    private  Integer	level;
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:dd")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:dd",timezone = "GMT+8")
    private LocalDateTime createdTime;
    private  Integer	isDisplay;
    private  Integer	isShieldLetter;
    private  Integer	isShieldComment;
    private  String	burst;
    @TableField(exist = false)
    private String image;
}
